<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<button id="test">test</button>
<textarea raws="10", cols="10" id="info"></textarea>
<script type="text/javascript">
		var ws = new WebSocket("ws://localhost:9090/websocket_base/ws1");
		ws.onmessage = function(event){
			var ta = document.getElementById("info");
			var d = document.createTextNode(event.data);
			ta.appendChild(d);
		};
		
		var btn = document.getElementById("test");
		btn.onclick=function(){
			ws.send("hello...");
		}
</script>
</body>
</html>